import numpy as np
import cv2
import matplotlib.pyplot as plt

# 1. 读取图片
img = cv2.imread("1.jpg",cv2.IMREAD_UNCHANGED)
# 2. 显示图片
# 2.1 Opencv
# cv2.imshow("dill",img)
# cv2.waitKey(0)
# cv2.destroyAllWindows()

# 2.2 matplotlib
plt.imshow(img[:,:,::-1])
plt.show()

cv2.imwrite("test.jpg",img)